//
//  TestViewController.m
//  Molian
//
//  Created by 胡津 on 16/7/15.
//  Copyright (c) 2015年 xiaocan. All rights reserved.
//

#import "TestViewController.h"
#import "TestInfoViewController.h"
@interface TestViewController ()

@end

@implementation TestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"测试";
    self.edgesForExtendedLayout = UIRectEdgeNone;

    [_userHeadImage sd_setImageWithURL:[NSURL URLWithString:[MLUser currentUser].avatar.url]];
    _userHeadImage.contentMode = UIViewContentModeScaleAspectFill;
    self.userHeadImage.layer.masksToBounds = YES;//开启圆角
    [self.userHeadImage.layer setCornerRadius:75/2];
    _userName.text = [MLUser currentUser].nickname;
    
}


- (IBAction)kaishi:(id)sender {
    [self.navigationController pushViewController:[[TestInfoViewController alloc] init] animated:YES];
//    [self presentViewController:[TestInfoViewController new] animated:YES completion:nil];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
